package com.mike.billingserver.service;

import com.mike.billingserver.dto.BillSearchDTO;
import com.mike.billingserver.entity.BillCategory;
import com.mike.billingserver.form.BillForm;
import com.mike.billingserver.vo.BillListVO;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;

/**
 * @author xiaozefeng
 * @date 2018-12-19 10:20
 */
public interface BillService {

    /**
     * 获取融资
     *
     * @return
     */
    List<BillCategory> getBillCategories();

    /**
     * 创建一笔流水
     *
     * @return
     */
    BillForm createBill(BillForm billForm);

    List<BillListVO> findAll();

    Page<BillListVO> findWithPage(Pageable pageable);

    Page<BillListVO> findAll(Pageable pageable, BillSearchDTO billSearchDTO);


}
